﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AutomationHost.ViewModels.ResultIndexPage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Test Planing
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h5>Test Case Results</h5>
<table width="100%">
<tr>
<th>CompleteTime</th>
<th>Test Plan Name</th>
<th>Device Name</th>
<th>Device Platform</th>
<th>Device IP</th>
<th>Result</th>
<th>Details</th>
</tr>
<%foreach(var a in Model.Results){ %>
<tr>
<td><%=a.CompleteTime.ToString() %></td>
<td><a href="/Plan/Home/List?planid=<%=a.TestPlanID %>" target="_blank"><%=a.TestPlanName%></a></td>
<td><a href="/Device/Details/<%=a.Device.GUID %>" target="_blank"><%=a.Device.Name %></a></td>
<td><%=a.Device.OS %> <%=a.Device.OSVersion %></td>
<td><%=a.Device.IP %></td>
<td><%=a.Result %></td>
<td><a href="/Result/Home/Details/<%=a.ID %>">View Details</a></td>
</tr>
<%} %>
</table>
</asp:Content>
